//
//  QJMineLSFHCell.m
//  QuanJieShopProject
//
//  Created by 刘中义 on 2018/2/28.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "QJMineLSFHCell.h"


@implementation QJMineLSFHCell
-(void)cellUpdateWithModel:(MineLSFHModel *)model{
    if (model) {
        NSLog(@"MineLSFHModel.addtime = %@", model.addtime);
        self.cellLeftLabel.text = [NSString stringWithoutNilFormart:model.index];
        NSString *time = [NSString timeChange:[NSString stringWithoutNilFormart:model.addtime] withFormatter:@"yyyy-MM-dd HH:mm:ss"];
        self.cellRightLabel.text = time;
    }
}
- (void)cellUpdateWithLSModel:(MineLSModel *)model{
    if (model) {
        NSLog(@"MineLSModel.addtime = %@", model.addtime);

        self.cellLeftLabel.text = [NSString stringWithFormat:@"%.2f", [model.fh floatValue]];
        NSString *time = [NSString timeChange:[NSString stringWithoutNilFormart:model.addtime] withFormatter:@"yyyy-MM-dd HH:mm:ss"];
        self.cellRightLabel.text = time;
    }
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
